home *** CD-ROM | disk | FTP | other *** search
/ Aminet 13 / Aminet 13 - August 1996.iso / MainActor / LoadMPEG / mpeg / readme < prev    next >
Text File  |  1993-09-05  |  2KB  |  76 lines

  1. Short: Stanford MPEG encoder/decoder v1.2 alpha
  2. Type: gfx/conv
  3. Uploader: s924723@minyos.xx.rmit.oz.au
  4. Author: Andy C. Hung (Unix), ported to Amiga by Son H. Le
  5. Requirements (at least): 68000 CPU, 2 meg and lotsa harddisk space!
  6.  
  7. This is the port of Stanford's MPEG utility version 1.2 alpha.
  8. It can encode/decode a mpeg file (.mpg) to its separate Y,U and V
  9. components. Combined with cyuv2ppm (another utility  by Andy C. Hung) you
  10. can convert these component files into a standard PPM file or alternative
  11. make a mpeg anim file using ppm2cyuv (note: you'll also need ilbmtoppm).
  12.  
  13. The PPM file can be manipulated using all sorts of PPM utilities to
  14. alter/fix/enhance the picture and ultimately convert into an displayable
  15. filetype (IFF,GIF,etc).
  16.  
  17. Sample usage:
  18. Decoding short.mpg anim
  19.  
  20.   SHELL:> mpeg -d -s short.mpeg short
  21.   START>SEQUENCE
  22.   Transmission rate (bps): 6553200
  23.   Image Dimensions: 352x240   MPEG Block Dimensions: 352x240
  24.   GOP>FirstFrame: 0
  25.   START>Frame: 0
  26.   First decoder buffer bits = -256
  27.   Intraframe Decode: 0
  28.   END>Frame: 0
  29.  
  30.   [snip..snip]
  31.  
  32.   END>Frame: 6
  33.   END>SEQUENCE
  34.  
  35. Will output files short1.Y, short1.U, short1.V .. short6.Y, short6.U and
  36. short6.V. Now you can run "cyuv2ppm" (remember to supply the picture width
  37. and height if they're not the default NTSC: 352x240) through them to
  38. convert them to PPM files and finally "ppmtoilbm" to convert the PPM files
  39. to IFFs.
  40.  
  41. Or alternatively, if you've got >wb2.04 you can use my Yuv2Iff script
  42. which automatically takes you through these steps.
  43.  
  44. usage: Yuv2Iff base from to width height
  45.  
  46. where base   is the base filename. eg. in above example base=short
  47.       from   is the start frame
  48.       to     is the finish frame (converts "from" to "to" inclusively)
  49.       width  is the picture frame width  \ mpeg will tell you these
  50.       height is the picture frame height / at the beginning.
  51.  
  52. So to continue the "short" decoding example,
  53.  
  54.   SHELL:> Yuv2Iff short 1 6 352 240
  55.  
  56.   Processing... short1.[YUV]
  57.  
  58.   input size: 352x240      output size: 352x240
  59.   ppmtoilbm: computing colormap...
  60.   ppmtoilbm: too many colors - proceeding to write a HAM6 file
  61.   ppmtoilbm: if you want a non-HAM file, try doing a 'ppmquant 32'
  62.   short1.Y  Deleted
  63.   short1.U  Deleted
  64.   short1.V  Deleted
  65.  
  66.   [snip..snip]
  67.  
  68.   Done!
  69.  
  70. Now you can use MkAnim by John Bickers to convert it to an ANIM7 file.
  71. If you think ppmtoilbm is too slow, try Wasp by Steven Reiz. However,
  72. when used on some mpegs, Wasp didn't make the background black. :(
  73.  
  74. Bye!
  75. Son Le
  76.